package com.yz.xyt.service;

import com.yz.xyt.domain.Role;

import java.util.List;

public interface IRoleService {

    int addUserRole(Long userId, Long roleId);

    List<String> selectUserRoles(Long userId);

    Role selectRoleByPostNumber(String postNumber);

    int deleteUserRole(Long userId);

    String findRoleIdByName(String roleName);

    int updateUserRole(Long id, String roleId);
}
